using System;
using System.IO;
using System.Collections.Generic;
using System.Text;
using System.Xml;
using System.Resources;

namespace stsdev
{
    public class ResourceBuilder
    {



        
        public static void CreateFileResource(string sResourceName, object oResourceFile)
        {
            // Creates a resource writer.
            ResXResourceWriter writer = new ResXResourceWriter(@"Properties\Resources.resx");
            

            // Adds resources to the resource writer.
            writer.AddResource(sResourceName, oResourceFile);

            
            // Writes the resources to the file or stream, and closes it.
            writer.Close();
            ProjectFileBuilder.AddSourceFile(@"Properties\Resources.resx", SourceFileTypeEnum.EmbeddedResource,"ResXFileCodeGenerator");

        }

       
    }
}

